<?php 
if(KT!='KhiThe') exit;
class productNew_model extends khithe_mysql{
	
	public function get_product_top($i)
	{		
		$query = "SELECT * FROM ".products." WHERE `Status`='true' AND Price!=0 order by ID DESC limit 0, ".$i." ";
		$note = parent::selectMySQL($query);	
		while ($row = mysql_fetch_assoc($note)){
			
			$arr[] = $row; 
		}
		parent::CloseConnection();
		
		return $arr;
	}
	
}
?>